<%--
  Created by IntelliJ IDEA.
  User: nico
  Date: 01/10/12
  Time: 16:30
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="s" uri="/struts-tags" %>

<s:textfield label="Paciente" name="suplementalcrfcsp.paciente" id="paciente" value="%{suplementalcrfcsp.paciente}"  />

<s:hidden  name="suplementalcrfcsp.fechaEvento" id="altfechaEvento" value="%{suplementalcrfcsp.fechaEvento}"/>
<s:textfield label="Fecha del Evento" id="fechaEvento" cssClass="datepicker"/>

<s:hidden  name="suplementalcrfcsp.dateReceived" id="altdateReceived" value="%{suplementalcrfcsp.dateReceived}"/>
<s:textfield label="Date Received" id="dateReceived" value="%{suplementalcrfcsp.dateReceived}" cssClass="datepicker"/>

<s:hidden  name="suplementalcrfcsp.dateSentToSite" id="altdateSentToSite" value="%{suplementalcrfcsp.dateSentToSite}"/>
<s:textfield label="Date Sent to Site" id="dateSentToSite" cssClass="datepicker"/>

<s:hidden  name="suplementalcrfcsp.dateSiteSentToUsa" id="altdateSiteSentToUsa" value="%{suplementalcrfcsp.dateSiteSentToUsa}"/>
<s:textfield label="Date Sento to Site USA" id="dateSiteSentToUsa"  cssClass="datepicker"/>

<s:textfield label="FedEx #" name="suplementalcrfcsp.fedExId" id="fedExId" value="%{suplementalcrfcsp.fedExId}"/>
<s:select label="Scope" name="suplementalcrfcsp.scope" id="scope"  value="%{suplementalcrfcsp.scope}"
          list="#{'1':'Site', '2':'Multi-site'}"/>

<tr>
    <td colspan="2" style="text-align: center">
        <s:submit value="Save" id="suplementalcrfcspSave" action="suplementalcrfcspSave" onclick="setEmptyDates();validate();beforeSave();" theme="simple" />
    </td>
</tr>
<s:if test="suplementalcrfcsp.id != null">
    <tr>
        <td colspan="2" style="text-align: center">
            <button id="suplementalcrfcspClear" onclick="$('#category').change(); $('html, body').animate({ scrollTop:  $('#category').offset().top - 15 }); return false;">Clear</button>
        </td>
    </tr>
</s:if>
<s:hidden name="suplementalcrfcsp.id" value="%{suplementalcrfcsp.id}"/>
<script>
    inicializarTodaFecha();
</script>
<s:if test="suplementalcrfcsp.id != null">
    <script type="text/javascript">
        $('#scope').parent().parent().remove();
    </script>
</s:if>